package inventory.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author sxt
 * @since 2019-11-06
 */
public class InRepositoryRecord extends Model<InRepositoryRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "in_repository_record_id", type = IdType.UUID)
    private String inRepositoryRecordId;
    private String materialTypicalId;
    private String source;
    private String targetRepository;
    private String typicalId;
    private Long count;
    private Date inTime;
    private String operator;

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator;
    }

    public String getInRepositoryRecordId() {
        return inRepositoryRecordId;
    }

    public void setInRepositoryRecordId(String inRepositoryRecordId) {
        this.inRepositoryRecordId = inRepositoryRecordId;
    }

    public String getMaterialTypicalId() {
        return materialTypicalId;
    }

    public void setMaterialTypicalId(String materialTypicalId) {
        this.materialTypicalId = materialTypicalId;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getTargetRepository() {
        return targetRepository;
    }

    public void setTargetRepository(String targetRepository) {
        this.targetRepository = targetRepository;
    }

    public String getTypicalId() {
        return typicalId;
    }

    public void setTypicalId(String typicalId) {
        this.typicalId = typicalId;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Date getInTime() {
        return inTime;
    }

    public void setInTime(Date inTime) {
        this.inTime = inTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.inRepositoryRecordId;
    }

    @Override
    public String toString() {
        return "InRepositoryRecordPo{" +
                "inRepositoryRecordId='" + inRepositoryRecordId + '\'' +
                ", materialTypicalId='" + materialTypicalId + '\'' +
                ", source='" + source + '\'' +
                ", targetRepository='" + targetRepository + '\'' +
                ", typicalId='" + typicalId + '\'' +
                ", count=" + count +
                ", inTime=" + inTime +
                ", operator='" + operator + '\'' +
                '}';
    }
}
